/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package wso.bus;

import wso.dao.ProductTypeDao;
import wso.dto.WsoProductType;

/**
 *
 * @author Violet_Ink
 */
public class ProductTypeBusImpl implements ProductTypeBus{

    private ProductTypeDao producttypeDao;

    public void setProducttypeDao(ProductTypeDao producttypeDao) {
        this.producttypeDao = producttypeDao;
    }

    public void deleteProductType(String producttypeid) {
        producttypeDao.deleteProductType(producttypeid);
    }

    public void saveorUpdateProductType(WsoProductType producttype) {
        producttypeDao.saveOrUpdateProductType(producttype);
    }

    public WsoProductType[] getAllProductType() {
        return producttypeDao.getAllProductType();
    }

    public WsoProductType getProductType(String producttypeid) {
        return producttypeDao.getProductType(producttypeid);
    }
}
